-- XSD schema extracted from ITU-T H.627 (08/2020)
<?xml version="1.0" encoding="utf-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<choice maxOccurs="unbounded">
<element name="Query">
<complexType>
<sequence>
<!-- Query request command series is shown as follows.-->
<!-- Command type: alarm query (required)-->
<element name="CmdType" fixed="Alarm"/>
<!-- Command SN (required) -->
<element name="SN" type="integer" minInclusive="1"/>
<!-- Alarm device ID or alarm center ID (10-digit) (required)-->
<element name="DeviceID" type="deviceIDType"/>
<!--Start alarm priority (optional), 0-all, 1-first level alarm, 2-second level alarm, 3-third level alarm, 4-fourth level alarm-->
<element name="StartAlarmPriority" type="string"/>
<!--End alarm priority (optional), 0-all, 1-first level alarm, 2-second level alarm, 3-third level alarm, 4-fourth level alarm-->
<element name="EndAlarmPriority" type="string"/>
<!--Alarm method conditions (optional), 0-all, 1- telephone alarm, 2-device alarm, 3-SMS alarm, 4-GPS alarm, 5-video alarm, 6-device fault alarm, 7-other alarm; it can be combined directly, such as 12-telephone alarm or device alarm -->
<element name="AlarmMethod" type="string"/>
<!-- Alarm type-->
<element name="AlarmType" type="string"/>
<!--Start alarm time (optional)-->
<element name="StartAlarmTime" type="dateTime"/>
<element name="EndAlarmTime" type="dateTime"/>
</sequence>
</complexType>
</element>
</choice>
</schema>